[Fix](bangc-ops): fix focal_loss_sigmoid_backward gamma range precheck #705
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for your contribution and we appreciate it a lot.
1. Motivation
fix focal_loss_sigmoid_backward gamma range precheck
2. Modification
3. Test Report
(1) gamma test
[2023-6-1 15:37:59] [MLUOP] [Error]:[mluOpFocalLossSigmoidBackward]: gamma should be in the range of [0, 10000]. But now gamma is 20000.
[2023-6-1 15:37:59] [MLUOP] [Error]:"MLUOP_STATUS_NOT_SUPPORTED in mluOpFocalLossSigmoidBackward( handle_, prefer, reduction, input_desc, input_mlu, target_desc, target_mlu, weight_desc, weight_mlu, alpha, gamma, grad_input_desc, grad_input_mlu)"
(2) release_temp cases test
[^ OK ] /MLU_OPS/SOFT_TRAIN/release_temp/focal_loss_sigmoid_backward/focal_loss_sigmoid_backward_data_included_int32_float16_1682494108948.pb
[ OK ] focal_loss_sigmoid_backward/TestSuite.mluOp/1029 (42 ms)
[----------] 1030 tests from focal_loss_sigmoid_backward/TestSuite (114205 ms total)
[----------] Global test environment tear-down
[2023-6-1 15:46:15] [MLUOP] [Vlog]:TearDown CNRT environment.
[ SUMMARY ] Total 1030 cases of 1 op(s).
ALL PASSED.
[==========] 1030 test cases from 1 test suite ran. (114730 ms total)
[ PASSED ] 1030 test cases.
YOU HAVE 7 DISABLED TESTS